
/*
 *   Copyright 2022/5/25 <a href="mailto:asialjim@hotmail.com">Asial Jim</a>
 *
 *   Licensed under the Apache License, Version 2.0 (the "License");
 *   you may not use this file except in compliance with the License.
 *   You may obtain a copy of the License at
 *
 *       http://www.apache.org/licenses/LICENSE-2.0
 *
 *   Unless required by applicable law or agreed to in writing, software
 *   distributed under the License is distributed on an "AS IS" BASIS,
 *   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *   See the License for the specific language governing permissions and
 *   limitations under the License.
 */

package com.asialjim.encommunicate.base.rsa.key;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;

/**
 * RSA 客户端密钥对
 *
 * @author Copyright © <a href="mailto:asialjim@hotmail.com">Asial Jim</a>   Co., LTD
 * @version 1.0
 * @since 2023/2/27, &nbsp;&nbsp; <em>version:1.0</em>, &nbsp;&nbsp; <em>java version:17</em>
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class RSAClientKey implements Serializable {

    @Serial
    private static final long serialVersionUID = 7917844268060681727L;
    private String appid;

    /**
     * 公钥, 用于客户端
     * <br/>
     * 对网络请求进行加密
     * <br/>
     * 对网络请求响应进行验签
     */
    private String pubKey;

    /**
     * 私钥，用于客户端
     * <br/>
     * 对网络请求进行签名
     * <br/>
     * 对网络请求响应进行解密
     */
    private String priKey;
}